import PropTypes from "prop-types";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";

export default function IconButton({ icon, children }) {
	return (
		<button className='button'>
			<FontAwesomeIcon icon={icon} style={{ color: "red" }}  />
			{children}
		</button>
	);
}
IconButton.prototype = {
	icon: PropTypes.array || PropTypes.string,
	children: PropTypes.string.isRequired,
	style: PropTypes.object,
	className: PropTypes.string,
	iconAtFront: PropTypes.bool,
	iconColor: PropTypes.string,
	onClick: PropTypes.func,
};
